package org.gbis.openbus.webbean;

import javax.servlet.http.HttpServletRequest;

public class WebBeanDataVersion extends WebBean {

	@Override
	public String toString() {
		String format = "webBeanDataVersion{ key: %s }";

		return String.format(format, this.getKey() );
	}

	@Override
	public Object[] getSearchParams() {
		return null;
	}

	@Override
	public String [] getLogParams() {
		String params [] = new String[ 10 ];
		return params;
	}

	@Override
	public String getApiName() {
		return "dataVersion";
	}

	private WebBeanDataVersion() {
	}

	public static WebBeanDataVersion getNewWebBeanDataVersion(HttpServletRequest request) {
		WebBeanDataVersion webBeanDataVersion = new WebBeanDataVersion();

		webBeanDataVersion.setKey( getString( request, "key"));

		return webBeanDataVersion;
	}

}
